<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<%@ page pageEncoding="UTF-8" %>
<%@ page import="jp.co.technotree.apl.api.common.Message,jp.co.technotree.common.ApplicationManager" %>
<jsp:useBean id="formBean" class="jp.co.technotree.apl.cmd.login.Lin2000Bean" scope="request" />
<%@ page import="jp.co.technotree.apl.api.common.FwCom" %>
<%
String nextPage = FwCom.nullToBlank(formBean.getNextPage());

%>
<html>
<head>


<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="apple-mobile-web-app-capable" content="yes"/>
<link rel='stylesheet' type='text/css' href='../../common/css/login/lin2000.css' >

<!--ポップアップ用-->
<link rel='stylesheet' type='text/css' href='../../common/css/popUpPc.css' >
<script type='text/javascript' src='../../common/js/popUpPc.js'></script>

<style type="text/css">


	button{
		width: 320px;
		height: 80px;
		margin-top:1px;
		font-weight:bold;
		font-size:30px;

		position:relative;
		z-index:3;
	}

	.mainLine{
		 position:absolute;
		 top :280px;
		 left:130px;
		 visibility: visible;

		 border: 4px solid #999999;

		 width: 600px;
		 height:210px;
		 z-index:1;
	}

	.mainTbl{
		 border: 0px solid #CCCCFF;
		 height:150px;
	}

	.mainBtn {
		width: 170px;
		height: 80px;
		font-size:25px;
	}
	.confirmBtn {
		width: 80px;
		height:50px;
		font-size:18px;
	}


	.selTitle{
	 font-size:25px;
	 valign:middle;

	}


</style>



<script language='javascript'>

//画面固定
//document.addEventListener('touchmove', function (e) { e.preventDefault(); }, false);

function onInit(){
	
	
	//ログインエラーならばメッセージ表示
	var loginFlg = <%=formBean.getPassExit()%>;
	
	if(loginFlg == false){
		alert_Custom("<%=Message.getMessage("WRN01400")%>");
	}
}


function nextPageJump(){
	location.href="../topmenu/top1000.fw";
}

function login(){
	//入力チェック
	var userCd = document.getElementById("userCd").value;
	var password = document.getElementById("password").value;
	if(userCd == ""){
		alert_Custom("<%=Message.getMessage("WRN00010").replace("$1", "従業員コード")%>");
		return ;
	}
	if(password == ""){
		alert_Custom("<%=Message.getMessage("WRN00010").replace("$1", "パスワード")%>");
		return ;
	}
	var frm = document.forms["F1"];
	frm.submit();
}


//-------------------------------------------------------------------------
//<!-- ポップアップ START -->

//パップアップ解除
function back(){
	document.getElementById("opAlertBtn").style.display = "none";
	document.getElementById("opAlert").style.display = "none";
	document.getElementById("opAlertButton").style.display = "none";
	document.getElementById("opAlertTop").style.display = "none";
	document.getElementById("allbackgr").style.display = "none";
}

//<!-- ポップアップ END -->
//-------------------------------------------------------------------------
</script>



</head>

<body onLoad="onInit()">
<form name="main" id="F1" action="./lin2100" method="post" class="frmMain" onsubmit="return false;">

<table style="">
	<!--HEADER TITLE START -->
	<tr style = "background-color:#e1e1e1;  font-weight: bold;  border-bottom:1px solid #e1e1e1;">
		<td colspan="2" class ="header_tbl" style = "font-size:25px; height:40px;" align = "left">
			　予備品管理システム(<%=formBean.kojou%>)

		</td>
	</tr>
	<!--HEADER TITLE END -->

	<!--HEADER2 TITLE START -->
	<tr style = "background-color:#D6D7DD; width:100%; border-bottom:1px solid #aaa;">
		<td style = "font-size:30px; text-shadow:2px 2px #666;" align = "center">
			ログイン画面
		</td>
	</tr>

	<!--HEADER2 TITLE END -->

	<!--メインメニュー画面　START  -->
	<tr>
		<td style="height:505px;" class="right" >
			 <!-- <div class="mainLine" id = "mainLine" style="display:inline; " ></div> -->


			<table width ="100%"  class="mainTbl">
				<!--発注 -->
				<tr>
					<td id="" align = "center"  class="selTitle">従業員コード：
					<input type="text"  class="" name="userCd" id="userCd" style="width: 230px; height:32px; font-size:25px;"  value="">　</td>
				</tr>
				<tr>
					<td id="" align = "center"  class="selTitle">　パスワード：
					<input type="password"  class="" name="password" id="password" style="width: 230px; height:32px; font-size:25px;"  value="">　</td>
				</tr>
				<tr>
					<td align = "center" >
						<br>
					</td>
				</tr>
				<tr>
					<td align = "center" >　　　
						<button onclick="login();" class="mainBtn" >ログイン</button>　　
						<button onclick="window.close(); return false;" class="mainBtn" >終了</button>
					</td>
				</tr>

			</table>

			<!--ログインMAIN画面　END  -->
		</td>
	</tr>
</table>
<!-- 
	<div class='footer' align='right' style="font-size:35px; background-image: url(../../common/img/toyotaB.png); background-repeat: no-repeat; align:top;" ></div> 
 -->	
	<!--警告 ポップアップ---------------------------------------------------------------------------- -->
	<div id="allbackgr" class="allbackgr" style="display:none;"></div>
	<div class="opAlertBtn" id = "opAlertBtn" style="display:none;" ></div>
	<div class="opAlertButton" id = "opAlertButton" style="display:none;" ></div>
	<div class="opAlertTop" id = "opAlertTop" style="display:none; font-size:22px;">　予備品管理システム　</div>
	<div class="opAlert" id = "opAlert" style="display:none;"></div>
	<!-- -------------------------------------------------------------------------------------------- -->


	<input type="hidden" id="nextPage" name="nextPage" value="">
</form>
</body>
</html>
